import request from '@/utils/request'

// 创建面试邀约
export function createInterviewInvite(data) {
  return request({
    url: '/member/interview-invite/create',
    method: 'post',
    data: data
  })
}

// 更新面试邀约
export function updateInterviewInvite(data) {
  return request({
    url: '/member/interview-invite/update',
    method: 'put',
    data: data
  })
}

// 删除面试邀约
export function deleteInterviewInvite(id) {
  return request({
    url: '/member/interview-invite/delete?id=' + id,
    method: 'delete'
  })
}

// 获得面试邀约
export function getInterviewInvite(id) {
  return request({
    url: '/member/interview-invite/get?id=' + id,
    method: 'get'
  })
}

// 获得面试邀约分页
export function getInterviewInvitePage(query) {
  return request({
    url: '/member/interview-invite/page',
    method: 'get',
    params: query
  })
}

// 导出面试邀约 Excel
export function exportInterviewInviteExcel(query) {
  return request({
    url: '/member/interview-invite/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
